﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AddUser.aspx.cs" Inherits="Admin_AddUser" StylesheetTheme="ContentMS" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>增加新的用户</title>
</head>
<body style="margin:0;" bgcolor="#D8E7FA">
   <form id="form1" runat="server">
   <table class="TableCss" width="100%" cellpadding="0" cellspacing="0" border="1">		
		<tr>
			<td background="../Images/HT_top.jpg" colspan="2" height="25">
				<table height="25" cellpadding="0" cellspacing="0" border="0">
					<tr>
						<td height="25" valign="middle" align="center">&nbsp;&nbsp;&nbsp;<img src="../Images/HT_top_ioc.GIF" /></td>
						<td><font class="AdminTitle">&nbsp;&nbsp;<b>增加新的用户</b></font></td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td width="150" style="width:150;" align="right">
				用户名称：</td>
			<td><asp:TextBox ID="tbUserName" runat="server" Width="200"></asp:TextBox>
				<asp:RequiredFieldValidator ID="rfName" runat="server" ControlToValidate="tbUserName" ErrorMessage="名称不能为空。"></asp:RequiredFieldValidator></td>
		</tr>
		<tr>
			<td style="width:150;" align="right">
				用户密码：</td>
			<td><asp:TextBox ID="tbPassword" runat="server" Width="200" TextMode="Password"></asp:TextBox>
				<asp:RequiredFieldValidator ID="rfPwd" runat="server" ControlToValidate="tbPassword" ErrorMessage="密码不能为空。"></asp:RequiredFieldValidator></td>
		</tr>
		<tr>
			<td style="width:150;" align="right">
				确认密码：</td>
			<td><asp:TextBox ID="tbPasswordStr" runat="server" Width="200" TextMode="Password"></asp:TextBox>
				<asp:CompareValidator ID="cvPwd" runat="server" ControlToCompare="tbPassword" ControlToValidate="tbPasswordStr"
					ErrorMessage="两次输入的密码不相同，请重新输入密码。"></asp:CompareValidator></td>
		</tr>
		<tr>
			<td style="width:150;" align="right">
				电子邮件：</td>
			<td><asp:TextBox ID="tbEmail" runat="server" Width="200"></asp:TextBox>
				<asp:RequiredFieldValidator ID="rfEmail" runat="server" ControlToValidate="tbEmail"
					Display="Dynamic" ErrorMessage="电子邮件不能为空。"></asp:RequiredFieldValidator>
				<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="tbEmail"
					ErrorMessage="电子邮件的格式不正确。" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator></td>
		</tr>
		<tr>
			<td style="width:150;" align="right">
				所属角色：</td>
			<td>
				<asp:DropDownList ID="RoleList" runat="server" Width="205px">
				</asp:DropDownList></td>
		</tr>		
		<tr><td style="height:100">&nbsp;</td><td style="height:100">&nbsp;</td></tr>
		<tr>
			<td align="left" colspan="2" style="height: 22px">
			  <asp:Button ID="AddBtn" runat="server" CssClass="ButtonCss" Text="注册新的用户" CommandName="add" OnCommand="Btn_Command" Width="145px"  /><FONT face="宋体">&nbsp;&nbsp;</FONT>
			  <asp:Button ID="ReturnBtn" runat="server" CssClass="ButtonCss" Text="返回" CausesValidation="False" CommandName="return" OnCommand="Btn_Command" Width="80px"  /></td>
		</tr>
	</table>
    </form>
</body>
</html>
